home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr28 / fsl12a.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-05-04  |  4KB  |  136 lines

  1.     @echo off
  2.     cls
  3. echo\
  4. echo        ╒══════════════════════════════════════════════════════════════╕
  5. echo        │ INSTALL.BAT                       FSLOGIN 1.2 │
  6. echo        │                                   │
  7. echo        │ This batch file installs Full Screen Login on a server.      │
  8. echo        │                                   │
  9. echo        │ Please be sure that you have SUPERVISOR or EQUIVALENT rights │
  10. echo        │ because files must be copied to the SYS:LOGIN and the SYS:   │
  11. echo        │ PUBLIC directories.                           │
  12. echo        │                                   │
  13. echo        │ Continue?  'Y'es or 'N'o.                       │
  14. echo        ╘══════════════════════════════════════════════════════════════╛
  15. echo\
  16.     yesno
  17.     if errorlevel 1 goto check_source
  18.     goto end
  19. ::
  20. :check_source
  21. ::
  22.     if exist fslogin.com goto check_target
  23.     cls
  24. echo\
  25. echo        ╒══════════════════════════════════════════════════════════════╕
  26. echo        │ HELP_1                           1.2 │
  27. echo        │                                   │
  28. echo        │ This batch file should be run from the same drive and        │
  29. echo        │ directory, where the other files of the FSLOGIN package      │
  30. echo        │ reside.                               │
  31. echo        │ Please change the current drive and directory first.           │
  32. echo        │                                   │
  33. echo        ╘══════════════════════════════════════════════════════════════╛
  34. echo\
  35.     pause
  36.     goto end
  37. ::
  38. :check_target
  39. ::
  40.     if NOT exist sys:login\fslogin.* goto select
  41.     cls
  42. echo\
  43. echo        ╒══════════════════════════════════════════════════════════════╕
  44. echo        │ HELP_2                           1.2 │
  45. echo        │                                   │
  46. echo        │ Full Screen Login is already installed on this server.       │
  47. echo        │ Do you want to write over the currently installed version?   │
  48. echo        │                                   │
  49. echo        │ Continue?  'Y'es or 'N'o.                       │
  50. echo        ╘══════════════════════════════════════════════════════════════╛
  51. echo\
  52.     yesno
  53.     if errorlevel 1 goto write_over
  54.     goto end
  55. ::
  56. :write_over
  57. ::
  58.     flag  sys:login\fslogin.* rw
  59.     flag  sys:public\fslogin.com rw
  60. ::
  61. :select
  62. ::
  63.     cls
  64. echo\
  65. echo        ╒══════════════════════════════════════════════════════════════╕
  66. echo        │ HELP_3                           1.2 │
  67. echo        │                                   │
  68. echo        │ Full Screen Login has support for English and Dutch.           │
  69. echo        │ Please answer 'Y'es to ONE of the following questions.       │
  70. echo        │                                   │
  71. echo        ╘══════════════════════════════════════════════════════════════╛
  72. echo\
  73. echo        ╒══════════════════════════════════════════════════════════════╕
  74. echo        │ Do you want to install the English version?               │
  75. echo        │                                   │
  76. echo        │ Continue?  'Y'es or 'N'o.                       │
  77. echo        ╘══════════════════════════════════════════════════════════════╛
  78. echo\
  79.     yesno
  80.     if errorlevel 1 goto english
  81. echo\
  82. echo        ╒══════════════════════════════════════════════════════════════╕
  83. echo        │ Do you want to install the Dutch version?               │
  84. echo        │                                   │
  85. echo        │ Continue?  'Y'es or 'N'o.                       │
  86. echo        ╘══════════════════════════════════════════════════════════════╛
  87.     yesno
  88.     if errorlevel 1 goto dutch
  89.     goto end
  90. ::
  91. :english
  92. ::
  93.     cls
  94.     ncopy US.* sys:login\fslogin.*
  95.     goto generic
  96. ::
  97. :dutch
  98. ::
  99.     cls
  100.     ncopy NL.* sys:login\fslogin.*
  101.     goto generic
  102. ::
  103. :generic
  104. ::
  105.     ncopy fslogin.*   sys:login
  106.     ncopy fslogin.com sys:public
  107.     flag  sys:login\fslogin.* ro s
  108.     flag  sys:public\fslogin.com ro s
  109.     pause
  110.     cls
  111. echo\
  112. echo        ╒══════════════════════════════════════════════════════════════╕
  113. echo        │ HELP_4                           1.2 │
  114. echo        │                                   │
  115. echo        │ When there are no error messages from the ncopy and flag     │
  116. echo        │ commands, Full Screen Login has been installed.           │
  117. echo        │                                   │
  118. echo        │ Just type FSLOGIN at the dos prompt to use this program, or  │
  119. echo        │ refer to the documentation for further instructions.           │
  120. echo        │                                   │
  121. echo        │              ┌─────────┐                   │
  122. echo        │        ┌─────┴───┐    │           (R)           │
  123. echo        │          ──│      │o    │──────────────────           │
  124. echo        │        │   ┌─────┴╨──┐ │  Association of           │
  125. echo        │        │   │          │─┘  Shareware               │
  126. echo        │        └───│     o    │    Professionals           │
  127. echo        │          ──────│     ║    │────────────────────           │
  128. echo        │            └────╨────┘    MEMBER               │
  129. echo        ╘══════════════════════════════════════════════════════════════╛
  130. echo\
  131.     pause
  132.     goto end
  133. ::
  134. :end
  135. ::
  136.